package com.ywk.pattern._25_mediator;

public class Main {
    public static void main(String[] args) {
        ConcreteMeditor meditor = new ConcreteMeditor();
        ConcreteColleague1 colleague1 = new ConcreteColleague1(meditor);
        ConcreteColleague2 colleague2 = new ConcreteColleague2(meditor);

        meditor.setConcreteColleague1(colleague1);
        meditor.setConcreteColleague2(colleague2);

        colleague1.sendMessage("�Թ�������");
        colleague2.sendMessage("����");

    }
}
